home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BMUG PD-ROM BV3
/
BMUG PD-ROM Version BV3 (CDRM1097900).iso
/
HyperCard
/
Games
/
Mathter Mind
/
Mathter Mind
/
card_2992.txt
< prev
next >
Wrap
Text File
|
1990-09-30
|
16KB
|
730 lines
-- card: 2992 from stack: in
-- bmap block id: 3508
-- flags: 0000
-- background id: 2694
-- name:
-- part 1 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=175 top=29 right=93 bottom=267
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 2118
-- text size: 48
-- style flags: 2304
-- line height: 64
-- part name: Field 1
-- part 2 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=176 top=83 right=147 bottom=268
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 2118
-- text size: 48
-- style flags: 2304
-- line height: 64
-- part name: Field 2
-- part 3 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=164 top=95 right=158 bottom=209
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 21
-- text size: 36
-- style flags: 2304
-- line height: 48
-- part name: Field 3
-- part 4 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=375 top=294 right=315 bottom=481
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Let's Do Math
----- HyperTalk script -----
on mouseUp
set numberFormat to 0.00
hide cd fld "Let's"
hide cd fld "Well Done"
hide cd fld "Oops"
put empty into cd fld "Field 3"
put empty into cd fld "Answer"
put empty into cd fld "Answer1"
get the random of 25
put it into cd fld "Field 1"
get the random of 8
put it into cd fld "Field 2"
show cd btn "ADDITION"
show cd btn "SUBTRACTION"
SHOW CD BTN "DIVISION"
SHOW CD BTN "MULTIPLICATION"
play "Bleep"
end mouseUp
-- part 8 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=36 top=157 right=225 bottom=273
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 2118
-- text size: 48
-- style flags: 2304
-- line height: 64
-- part name: Answer
----- HyperTalk script -----
on mouseUp
add "1" to cd fld "Right"
hide cd fld "Answer1"
show cd fld "Well Done"
set numberFormat to 0
get cd fld "Right"
divide it by cd fld "Tried"
multiply it by 100
put it into cd fld "Score"
end mouseUp
-- part 10 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=343 top=101 right=119 bottom=477
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ADDITION
----- HyperTalk script -----
on mouseUp
set numberFormat to 0
hide cd fld "Answer"
add "1" to cd fld "Tried"
put empty into cd fld "Answer"
put empty into cd fld "Answer1"
hide cd fld "Well Done"
hide cd fld "Oops"
hide me
put "+" into cd fld "Field 3"
get cd fld "Field 1"
add cd fld "Field 2" to it
put it into cd fld "Answer"
hide cd fld "Answer"
show cd fld "Answer1"
show cd btn "‚àö +"
select text of cd fld "Answer1"
end mouseUp
-- part 11 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=344 top=77 right=94 bottom=477
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: SUBTRACTION
----- HyperTalk script -----
on mouseUp
set numberFormat to 0
hide cd fld "Answer"
add "1" to cd fld "Tried"
put empty into cd fld "Answer"
put empty into cd fld "Answer1"
hide cd fld "Well Done"
hide cd fld "Oops"
hide me
put "-" into cd fld "Field 3"
get cd fld "Field 1"
subtract cd fld "Field 2" from it
put it into cd fld "Answer"
show cd btn "‚àö -"
select text of cd fld "Answer1"
end mouseUp
-- part 12 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=343 top=53 right=70 bottom=476
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: DIVISION
----- HyperTalk script -----
on mouseUp
set numberFormat to 0
hide cd fld "Answer"
add "1" to cd fld "Tried"
set numberFormat to 0.0
put empty into cd fld "Answer"
put empty into cd fld "Answer1"
hide cd fld "Well Done"
hide cd fld "Oops"
hide me
put "√∑" into cd fld "Field 3"
get cd fld "Field 1"
divide it by cd fld "Field 2"
put it into cd fld "Answer"
show cd btn "‚àö √∑"
select text of cd fld "Answer1"
end mouseUp
-- part 13 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=343 top=30 right=47 bottom=476
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: MULTIPLICATION
----- HyperTalk script -----
on mouseUp
set numberFormat to 0
hide cd fld "Answer"
add "1" to cd fld "Tried"
put empty into cd fld "Answer"
put empty into cd fld "Answer1"
hide cd fld "Well Done"
hide cd fld "Oops"
hide me
put "x" into cd fld "Field 3"
get cd fld "Field 1"
multiply it by cd fld "Field 2"
put it into cd fld "Answer"
show cd btn "‚àö x"
select text of cd fld "Answer1"
end mouseUp
-- part 14 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=24 top=278 right=324 bottom=61
-- title width / last selected line: 65535
-- icon id / first selected line: -15651 / 49885
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
answer "Are You Sure You Want To Quit" with "Yes" or "No"
if it is "No" then
visual effect zoom close slowly
go to this card
show cd fld "Let's"
else
put empty into cd fld "Answer"
put empty into cd fld "Answer1"
put empty into cd fld "Field 1"
put empty into cd fld "Field 2"
put empty into cd fld "Field 3"
put empty into cd fld "Right"
put empty into cd fld "Wrong"
put empty into cd fld "Score"
put empty into cd fld "Tried"
hide cd btn "ADDITION"
hide cd btn "SUBTRACTION"
hide cd btn "DIVISION"
hide cd btn "MULTIPLICATION"
hide cd fld "Oops"
hide cd fld "Well Done"
show cd fld "Let's"
doMenu "Compact Stack"
doMenu "Quit HyperCard"
end if
end mouseUp
-- part 15 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=27 top=26 right=50 bottom=153
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 2304
-- line height: 16
-- part name:
-- part 16 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=24 top=74 right=98 bottom=155
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 2304
-- line height: 16
-- part name:
-- part 17 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=31 top=51 right=79 bottom=147
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 14
-- style flags: 2304
-- line height: 18
-- part name: Right
-- part 18 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=31 top=105 right=133 bottom=147
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 14
-- style flags: 2304
-- line height: 18
-- part name: Wrong
-- part 19 (field)
-- low flags: 00
-- high flags: 2002
-- rect: left=156 top=219 right=282 bottom=275
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 2118
-- text size: 48
-- style flags: 256
-- line height: 64
-- part name: Answer1
----- HyperTalk script -----
on mouseUp
set lockScreen to true
add "1" to cd fld "Wrong"
hide cd fld "Which"
show cd fld "Oops"
hide cd fld "Answer"
set numberformat to 0
get cd fld "Right"
divide it by cd fld "Tried"
multiply it by 100
put it into cd fld "Score"
end mouseUp
-- part 21 (field)
-- low flags: 81
-- high flags: 2000
-- rect: left=343 top=121 right=201 bottom=471
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 1053
-- text size: 24
-- style flags: 6400
-- line height: 32
-- part name: Well Done
-- part 22 (field)
-- low flags: 81
-- high flags: 2000
-- rect: left=346 top=136 right=174 bottom=468
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 1053
-- text size: 24
-- style flags: 6400
-- line height: 32
-- part name: Oops
-- part 23 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=92 top=293 right=317 bottom=234
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 2304
-- line height: 16
-- part name:
-- part 24 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=239 top=291 right=317 bottom=312
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 14
-- style flags: 2304
-- line height: 18
-- part name: Tried
-- part 25 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=338 top=209 right=233 bottom=480
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 2304
-- line height: 16
-- part name:
-- part 26 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=360 top=233 right=266 bottom=423
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 20
-- style flags: 2304
-- line height: 26
-- part name: Score
-- part 27 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=316 top=296 right=314 bottom=372
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Reset
----- HyperTalk script -----
on mouseUp
answer "Are You Sure You Want To Reset Everything?" with "Yes" or "No"
if it is "No" then
visual effect zoom close slowly
go to this card
else
hide cd fld "Oops"
hide cd fld "Well Done"
hide cd btn "MULTIPLICATION"
hide cd btn "DIVISION"
hide cd btn "SUBTRACTION"
hide cd btn "ADDITION"
put empty into cd fld "Answer"
put empty into cd fld "Answer1"
put empty into cd fld "Field 1"
put empty into cd fld "Field 2"
put empty into cd fld "Right"
put empty into cd fld "Wrong"
put empty into cd fld "Tried"
put empty into cd fld "Score"
show cd fld "Let's"
end if
end mouseUp
-- part 28 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=423 top=233 right=262 bottom=475
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 20
-- style flags: 2304
-- line height: 26
-- part name: Score
-- part 29 (field)
-- low flags: 01
-- high flags: 2000
-- rect: left=31 top=223 right=279 bottom=151
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 2304
-- line height: 16
-- part name:
-- part 31 (field)
-- low flags: 01
-- high flags: 2002
-- rect: left=314 top=266 right=293 bottom=480
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 20
-- text size: 10
-- style flags: 0
-- line height: 10
-- part name: Let's
-- part 35 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=184 top=182 right=197 bottom=250
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
show cd btn "Check Answer"
end mouseUp
-- part 36 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=372 top=53 right=70 bottom=442
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: √ ÷
----- HyperTalk script -----
on mouseUp
hide cd btn "‚àö √∑"
show cd fld "Answer"
get cd fld "Answer1"
if it = cd fld "Answer" then
show cd fld "Well Done"
play "Beethoven"
add "1" to cd fld "Right"
else
show cd fld "Oops"
play "Boingg.1"
add "1" to cd fld "Wrong"
set numberFormat to 0
end if
get cd fld "Right"
divide it by cd fld "Tried"
multiply it by 100
put it into cd fld "Score"
end mouseUp
-- part 37 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=372 top=30 right=47 bottom=442
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: √ x
----- HyperTalk script -----
on mouseUp
hide me
show cd fld "Answer"
get cd fld "Answer1"
if it = cd fld "Answer" then
show cd fld "Well Done"
play "Beethoven"
add "1" to cd fld "Right"
else
show cd fld "Oops"
play "Boingg.1"
add "1" to cd fld "Wrong"
set numberFormat to 0
end if
get cd fld "Right"
divide it by cd fld "Tried"
multiply it by 100
put it into cd fld "Score"
end mouseUp
-- part 38 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=372 top=77 right=94 bottom=442
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: √ -
----- HyperTalk script -----
on mouseUp
hide cd btn "‚àö -"
show cd fld "Answer"
get cd fld "Answer1"
if it = cd fld "Answer" then
show cd fld "Well Done"
play "Beethoven"
add "1" to cd fld "Right"
else
show cd fld "Oops"
play "Boingg.1"
add "1" to cd fld "Wrong"
set numberFormat to 0
end if
get cd fld "Right"
divide it by cd fld "Tried"
multiply it by 100
put it into cd fld "Score"
end mouseUp
-- part 39 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=374 top=101 right=118 bottom=444
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: √ +
----- HyperTalk script -----
on mouseUp
hide cd btn "‚àö +"
show cd fld "Answer"
get cd fld "Answer1"
if it = cd fld "Answer" then
show cd fld "Well Done"
play "Beethoven"
add "1" to cd fld "Right"
else
show cd fld "Oops"
play "Boingg.1"
add "1" to cd fld "Wrong"
set numberFormat to 0
end if
get cd fld "Right"
divide it by cd fld "Tried"
multiply it by 100
put it into cd fld "Score"
end mouseUp
-- part contents for card part 15
----- text -----
Number Right
-- part contents for card part 16
----- text -----
Number Wrong
-- part contents for card part 21
----- text -----
WELL DONE !
-- part contents for card part 22
----- text -----
OOPS !
-- part contents for card part 23
----- text -----
Problems Tried
-- part contents for card part 25
----- text -----
Your Score
-- part contents for card part 28
----- text -----
%
-- part contents for card part 29
----- text -----
Put Your Answer Here ----------->
-- part contents for card part 31
----- text -----
Clicking "Let's Do Math" starts the program or changes the problem.